package com.zxz.mq.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "my.mq")
public class MyMqProperties {
    private String host;
    private int port;
    private String username;
    private String password;
    private String vhost;

    private List<ExchangeProperties> exchanges;

    private List<QueueProperties> queues;

    private List<BindingProperties> bindings;
}
